﻿
////////////////////////////////////////////////////////////////////////////////////////////
// 文件名: SSConfigInfo.cs
//
// 模块名称: SSConfigInfo
//
// 作者: lpc
//
// 历史记录（记录修改记录，修改文件后请添加修改记录，注明修改时间、修改人，修改内容）:
// 13-1-22  lpc  创建文件
////////////////////////////////////////////////////////////////////////////////////////////


using System;
using System.ComponentModel.DataAnnotations;

namespace Model
{
    /// <summary>
    /// SSConfig表实体类
    /// </summary>
    public class SSConfigInfo
    {
        /// <summary>
        /// GUID
        /// </summary>
        public string Guid { get;set; }
        /// <summary>
        /// Name
        /// </summary>
        public string Name { get;set; }
        /// <summary>
        /// DatabaseType
        /// </summary>
        public int DatabaseType { get;set; }
        /// <summary>
        /// ConnectionString
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// ConnectionString
        /// </summary>
        public string ConnectionString { get;set; }
    }

    public class SSConfigInfoMetadata
    {
        [ScaffoldColumn(false)]
        [Display(Name = "主键", Order = 1)]
        public string Guid { get; set; }

        [Required(ErrorMessage = "不能为空")]
        [ScaffoldColumn(true)]
        [StringLength(200, ErrorMessage = "长度不可超过50")]
        [Display(Name = "系统名称", Order = 2)]
        public object Name { get; set; }

        [ScaffoldColumn(true)]
        [StringLength(500, ErrorMessage = "长度不可超过500")]
        [Display(Name = "数据库类型", Order = 3)]
        public object ConnectionString { get; set; }

       


    }

    public class SSConfigConnInfo
    {
        /// <summary>
        /// SSConfigID
        /// </summary>
        public string SSConfigID { get; set; }
        /// <summary>
        /// Connection
        /// </summary>
        public string Connection { get; set; }
    }
}